package com.hongyi.daomain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigInteger;

/**
 * @author hongyi
 * @date 2023/11/2 18:39
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Emp {
     private Integer id;
     private String name;
     private Integer sex;
     private Integer age;
     private String address;
     private Long dept_id;
     private Integer userid;

     private Dept dept; // 使用Emp来维护关联关系 这种我们也称之为一映射关系

     private User user;
}
